package com.koala.learn.guavalearn;

import com.google.common.collect.*;
import org.junit.Test;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author yantingrui
 * @date 2021/12/30   19:34
 */
public class StartTest {
    public static void main(String[] args) {
        // 学习注释
        ImmutableMap<String, String> of = ImmutableMap.of("1", "2");
        System.out.println(of.toString());
    }
    // zhus


    /**
     * sss
     */
    @Test
    public void test23() {
        Multiset<String> set = HashMultiset.create();
        set.add("A");
        set.add("A");
        int a = set.count("A");
        System.out.println(a);
    }

    /**
     *
     */
    public void fun(LocalDateTime s) {
        DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd");
        String format = df.format(s);
        System.out.println(format);
    }

    /**
     *
     */
    @Test
    public void test49() {
        Table<Integer, Integer, Integer> tables = HashBasedTable.create();
        tables.put(1, 2, 3);
        tables.put(1, 3, 5);
        Integer integer = tables.get(1, 2);
        System.out.println(integer);

    }
}
